/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.query.TrainFlowHandleQuery;
import com.xy.biz.ts.domain.req.HandleTrainFlowRequest;
import com.xy.biz.ts.domain.req.HandleTrainSumFlowRequest;
import com.xy.biz.ts.domain.req.HandleTrainSumReleaseFlowRequest;
import com.xy.biz.ts.domain.resp.GetTrainSumResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;
import com.xy.biz.ts.domain.bo.TrainSumBO;
import com.xy.biz.ts.domain.query.TrainSumQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-7-29
 */
public interface TrainSumService {
	
	/**
	 * 保存
	 *
	 * @param trainSumBO
	 */
	Result<?> saveTrainSum(TrainSumBO trainSumBO);

	/**
	 * 主管领导审批
	 *
	 * @param request
	 */
	Result<?> adminAudit(HandleTrainSumFlowRequest request);

	/**
	 * 人事行政部意见
	 *
	 * @param request
	 */
	Result<?> opinion(HandleTrainSumReleaseFlowRequest request);

	/**
	 * 培训总结待办
	 *
	 * @param query
	 */
	Page<GetTrainSumResponse> searchTrainSumFlowTodo(TrainFlowHandleQuery query);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllTrainSum(Collection<TrainSumBO> collection);
	
	/**
	 * 更新
	 *
	 * @param trainSumBO
	 */
	Result<?> updateTrainSum(TrainSumBO trainSumBO);
	
	/**
	 * 删除
	 *
	 * @param trainSumId
	 */
	Result<?> deleteTrainSum(Long trainSumId);
	
	/**
	 * 查找一个
	 *
	 * @param trainSumId
	 * @return 
	 */
	TrainSumBO getTrainSum(Long trainSumId);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainSumBO> listTrainSumById(Collection<Long> collection);
	
	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainSumBO> listTrainSum(TrainSumQuery query);
	
	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainSum(TrainSumQuery query);
	
}
